<template>
	<view :class="['vh100',{'dark':theme == 'dark'}]">
		
		<view class="u-content plr20 ptb10">
				<u-parse :html="content">
					
				</u-parse>
		</view>
	</view>
</template>

<script>
	import {mapState,mapActions,mapGetters} from 'vuex';
	import {
		commonArticle
	} from '../../common/apiString.js'
	import {myMixins} from '@/common/myMixins.js'//加入全局下拉刷新
	export default{
		mixins:[myMixins],
		data() {
			return {
				content: ``
			}
		},
		computed:{
			...mapState({
			  theme:state=>state.theme
			}),
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title:this.$t('bico.W622'),
			})
			this.$utils.setTheme(this.theme);
			
		},
		onShow(){
			this.getHtml()
		},
		methods:{
			getHtml(){
				this.$utils.initData({
					url: commonArticle,
					data: {
						type: 'SERVER_INFO',
						language:uni.getStorageSync('lang')
					},
					type: 'post'
				}, (res, msg) => {
					//uni.stopPullDownRefresh();
					this.content=res.content
				})
			}
		}
	}
</script>

<style lang="scss">
	.plr20 {
	    padding-left: 4vw;
	    padding-right: 4vw;
	}
</style>
